package com.shadowtorcher.dragonstreasure.config;

public class Config {
    public static String PATH;
    public static String ServerURL;
    public static String MyURL;

    static {
        PATH = System.getenv("DRAGONS_PATH");
        if (PATH == null) PATH = "/tmp";
        ServerURL = System.getenv("DRAGONS_SERVER_URL");
        if (ServerURL == null) ServerURL = "www.example.org";
        MyURL = System.getenv("DRAGONS_MY_URL");
        if (MyURL == null) MyURL = "www.example.prg";
    }

    public String toString() {
        return "PATH:  " + PATH + "\n" +
                "ServerURL: " + ServerURL + "\n" +
                "MyURL: " + MyURL;
    }
}
